<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="portlet box white">
	<div class="portlet-body form">
		<div class="tabbable" id="tabs-535909">
			<ul class="nav nav-tabs">
				<li class="active"><a href="#panel-526372" data-toggle="tab">基本信息</a></li>
				<li class="disabled"><a href="#panel-107813" data-toggle="tab">销售信息</a></li>
				<li class="disabled"><a href="#panel-107814" data-toggle="tab">图片信息</a></li>
				<li class="disabled"><a href="#panel-107815" data-toggle="tab">物流信息</a></li>
			</ul>

			<div class="tab-content">
				<div class="tab-pane active" id="panel-526372">
					<form id="productForm" class="form-horizontal form-bordered"
						action="/product/save" method="post">
						<div class="form-group">
							<label class="col-md-3 control-label">商品名称</label>
							<div class="col-md-4">
								<input type="text" name="code" class="form-control"
									value="${Product.name}" maxlength="45"
									placeholder="${Product.name }" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">中文配货名称</label>
							<div class="col-md-4">
								<input type="text" name="util" class="form-control"
									value="${Product.util}" maxlength="45" /> <label> <input
									type="checkbox"> 同商品名称
								</label>

							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">英文配货名称</label>
							<div class="col-md-4">
								<input type="text" name="packing" class="form-control"
									value="${Product.packing}" maxlength="10" /><input
									type="checkbox" /><span>同商品名称</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">商品编号/PCL货品编号/SKU</label>
							<div class="col-md-4">
								<input type="text" name="volume" class="form-control"
									value="${Product.code}" maxlength="22" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">PCL/SKU别名</label>
							<div class="col-md-4">
								<input type="text" name="length" class="form-control"
									value="${Product.code}" maxlength="22" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">商品中文报关名称</label>
							<div class="col-md-4">
								<input type="text" name="weight" class="form-control"
									value="${product.weight}" maxlength="22" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">商品英文报关名称</label>
							<div class="col-md-4">
								<input type="text" name="height" class="form-control"
									value="${product.height}" maxlength="22" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">海关编号(HS Code)</label>
							<div class="col-md-4">
								<input type="text" name="grossWeight" class="form-control"
									value="${product.grossWeight}" maxlength="22" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">分类</label>
							<div class="col-md-4">
								<select class="form-control"><option>未分类</option></select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">商品状态</label>
							<div class="col-md-4">
								<input type="radio" />在售<input type="radio"
									style="margin-left: 20px;" />停售<input type="radio"
									style="margin-left: 20px;" />试卖
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">产品特点</label>
							<div class="col-md-4">
								<textarea class="form-control" rows="3"></textarea>
								<span>”产品特点“内容可在采购单打印中显示【由于列宽限制，最多可显示33个字符】</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-3 control-label">备注</label>
							<div class="col-md-4">
								<textarea class="form-control" rows="3"></textarea>
							</div>
						</div>
						<div class="form-actions">
							<div class="col-md-9 col-md-offset-3">
								<button type="button" class="btn btn-primary"
									onclick="save(this)">
									<spring:message code="btn.save"></spring:message>
								</button>
								<button type="button" class="btn btn-primary"
									onclick="save(this)">保存并继续下一步</button>
								<button type="reset" class="btn btn-primary" onclick="cancel()">
									<spring:message code="btn.return"></spring:message>
								</button>
							</div>
						</div>
						<input type="hidden" name="id" value="${product.id}">
					</form>

				</div>
				<div class="tab-pane" id="panel-107813">
					<p>Howdy, I'm in Section 2.</p>
				</div>
				<div class="tab-pane" id="panel-107814">
					<p>Howdy, I'm in Section 3.</p>
				</div>
				<div class="tab-pane" id="panel-107815">
					<p>Howdy, I'm in Section 4.</p>
				</div>
			</div>
		</div>

	</div>
</div>
<script type="text/javascript"
	src="<c:url value="/static/custom/datepicker-util.js"></c:url>"></script>
<script type="text/javascript">
	$(function() {
		$('#productForm').validate();
		$('.disabled').find('a').css('color', '#ddd');
		$('.disabled').click(function(e) {
			return false;
		})
	});
</script>